<template>
  <div>
    <router-view @act="act" />
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/index">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/lookup">找房</van-tabbar-item>
      <van-tabbar-item icon="newspaper-o" to="/news">资讯</van-tabbar-item>
      <van-tabbar-item icon="contact" to="/my">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "footer-page",

  data() {
    return {
      active: 4,
    };
  },
  methods: {
    act(num) {
      this.active = num;
    },
  },
};
</script>

<style scoped></style>
